/**
 * 北京中流科技有限公司 版权所有
 * http://www.chinasoa.com.cn
 */
package cn.com.chinasoa.course.subscribe.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Version;

/**
 * @author 刘洋(liuyang@chinasoa.com.cn)
 * 2007-11-1下午01:51:57
 */
@Entity
public class PrivilegeStrategy  implements Serializable {
	private static final long serialVersionUID = -38942170431233624L;
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO) 
	private long id;
	@Version
	private int version;
	@Column(nullable=false)
	private String description;
	//1-100内的数字，折扣的百分比
	@Column(nullable=false)
	private int discount;

	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getDiscount() {
		return discount;
	}
	public void setDiscount(int discount) {
		this.discount = discount;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}

}
